export default {
  //level
  createActivityPropertiesLevel:{//创建活动属性等级
    url: '/activity/activityPropertiesLevel/create',
    require:['token','clientid','name','min','max']//data(选)、code(选)
  },
  deleteActivityPropertiesLevel:{//删除活动属性等级
    url: '/activity/activityPropertiesLevel/delete',
    require:['token','clientid']//id/code
  },
  updateActivityPropertiesLevel:{//更新活动属性等级
    url: '/activity/activityPropertiesLevel/update',
    require:['token','clientid','id']//name(选)、data(选)、code(选)、min(选)、max(选)
  },
  getActivityPropertiesLevel:{//获取活动属性等级
    url: '/activity/activityPropertiesLevel/get',
    require:['token','clientid']//id/code
  },
  getActivityPropertiesLevelList:{//获取活动属性等级列表
    url: '/activity/activityPropertiesLevel/list',
    require:['token','clientid']
  },
  createActivityProperties:{//创建活动属性
    url: '/activity/activityProperties/create',
    require:['token','clientid','name','levelId','priority']//data(选)、code(选)
  },
  deleteActivityProperties:{//删除活动属性
    url: '/activity/activityProperties/delete',
    require:['token','clientid']//code(选),'id'
  },
  updateActivityProperties:{//更新活动属性
    url: '/activity/activityProperties/update',
    require:['token','clientid','id']//name(选)、levelId,priority,data(选)、code(选)
  },
  getActivityProperties:{//获取活动属性
    url: '/activity/activityProperties/get',
    require:['token','clientid']//code(选),'id'
  },
  getActivityPropertiesList:{//获取活动属性列表
    url: '/activity/activityProperties/list',
    require:['token','clientid']
  },
  createActivity:{//创建活动
    url: '/activity/activity/create',
    require:['token','clientid','title','start','departmentCode']//end(选)、data(选)、
    // activityNodes(选，结构：[{"activityPropertiesId":1,"name":"活动节点1","data":{"mark":"活动的data字段可选填"},"nodeJson":"{\"\":\"\"}"}])
  },
  deleteActivity:{//删除活动
    url: '/activity/activity/delete',
    require:['token','clientid','id']
  },
  updateActivity:{//更新活动
    url: '/activity/activity/update',
    require:['token','clientid','id']//name(选)、start(选)、end(选)、data(选)、finished(选)、enabled(选)
  },
  getActivity:{//获取活动
    url: '/activity/activity/get',
    require:['token','clientid','id']//code(选)
  },
  getActivityList:{//获取活动列表
    url: '/activity/activity/list',
    require:['token','clientid','departmentId']//page、size(选)、departmentId、repeatable(选)
  },
  getActivityListByAdmin:{//管理员获取活动列表
    url: '/activity/activity/admin/list',
    require:['token','clientid','departmentId']//page、size(选)、departmentId(选)、enabled(选)、finished(选)、key(选)、start(选)、end(选)、repeatable(选)
  },
  createActivityUser:{//创建活动用户
    url: '/activity/activityUser/create',
    require:['token','clientid','name','sex','companyId','activityId']//data(选)、idCard(选)、phone(选)
  },
  deleteActivityUser:{//删除活动用户
    url: '/activity/activityUser/delete',
    require:['token','clientid','id']
  },
  updateActivityUser:{//更新活动用户
    url: '/activity/activityUser/update',
    require:['token','clientid','id']//name(选)、sex(选)、idCard(选)、phone(选)、companyId(选)、active(选)、used(选)、activityId(选)、data(选)
  },
  getActivityUser:{//获取活动用户
    url: '/activity/activityUser/get',
    require:['token','clientid','id']
  },
  getActivityUserList:{//获取活动用户列表  196
    url: '/activity/activityUser/list',
    require:['token','clientid']//keyword(选)、actionId(选)
  },
//  activityAction
  createActivityAction:{//创建活动行为
    url: '/activity/activityAction/create',
    require:['token','clientid','name']//code(选)、data(选)
  },
  updateActivityAction:{//更新活动行为
    url: '/activity/activityAction/update',
    require:['token','clientid','id']//name,code(选)、data(选)/enabled
  },
  deleteActivityAction:{//删除活动行为
    url: '/activity/activityAction/delete',
    require:['token','clientid']//  id或code
  },
  getActivityAction:{//获取活动行为
    url: '/activity/activityAction/get',
    require:['token','clientid']//  id或code
  },
  getActivityActionList:{//获取活动行为列表
    url: '/activity/activityAction/get',
    require:['token','clientid']// page,size,enabled
  },
}
